<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no">
  <meta name="description" content="API docs for the AppLocale enum from the strings.g library, for the Dart programming language.">
  <title>AppLocale enum - strings.g library - Dart API</title>


  
  <link rel="preconnect" href="https://fonts.gstatic.com">
  <link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,0,0" rel="stylesheet">
  
  <link rel="stylesheet" href="../static-assets/github.css?v1">
  <link rel="stylesheet" href="../static-assets/styles.css?v1">
  <link rel="icon" href="../static-assets/favicon.png?v1">

  
</head>


<body data-base-href="../" data-using-base-href="false" class="light-theme">

<div id="overlay-under-drawer"></div>

<header id="title">
  <span id="sidenav-left-toggle" class="material-symbols-outlined" role="button" tabindex="0">menu</span>
  <ol class="breadcrumbs gt-separated dark hidden-xs">
    <li><a href="../index.html">yuuna</a></li>
    <li><a href="../i18n_strings.g/i18n_strings.g-library.html">strings.g</a></li>
    <li class="self-crumb">AppLocale enum</li>
  </ol>
  <div class="self-name">AppLocale</div>
  <form class="search navbar-right" role="search">
    <input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
  <div class="toggle" id="theme-button">
    <label for="theme">
      <input type="checkbox" id="theme" value="light-theme">
      <span id="dark-theme-button" class="material-symbols-outlined">
        brightness_4
      </span>
      <span id="light-theme-button" class="material-symbols-outlined">
        brightness_5
      </span>
    </label>
  </div>
</header>
<main>

  <div id="dartdoc-main-content" class="main-content">
      <div>

        <h1>
          <span class="kind-enum">AppLocale</span>
          enum 
 

        </h1>
      </div>

    
<section class="desc markdown">
  <p>Supported locales, see extension methods below.</p>
<p>Usage:</p>
<ul>
<li>LocaleSettings.setLocale(AppLocale.en) // set locale</li>
<li>Locale locale = AppLocale.en.flutterLocale // get flutter locale from enum</li>
<li>if (LocaleSettings.currentLocale == AppLocale.en) // locale check</li>
</ul>
</section>


    <section>
      <dl class="dl-horizontal">
        
  <dt>Inheritance</dt>
  <dd>
    <ul class="gt-separated dark eNum-relationships">
      <li><a href="https://api.flutter.dev/flutter/dart-core/Object-class.html">Object</a></li>
        <li><a href="https://api.flutter.dev/flutter/dart-core/Enum-class.html">Enum</a></li>
      <li>AppLocale</li>
    </ul>
  </dd>

        
        
  <dt>Mixed in types</dt>
  <dd>
    <ul class="comma-separated eNum-relationships">
        <li><a href="https://pub.dev/documentation/slang/3.13.0/api_locale/BaseAppLocale-class.html">BaseAppLocale</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="../i18n_strings.g/AppLocale.html">AppLocale</a></span>, <span class="type-parameter">_StringsEn</span>&gt;</span></li>
    </ul>
  </dd>
        


      </dl>
    </section>

    
  <section class="summary offset-anchor" id="constructors">
    <h2>Constructors</h2>

    <dl class="constructor-summary-list">
        <dt id="AppLocale" class="callable">
          <span class="name"><a href="../i18n_strings.g/AppLocale/AppLocale.html">AppLocale</a></span><span class="signature">(<span class="parameter" id="-param-languageCode">{<span>required</span> <span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a></span> <span class="parameter-name">languageCode</span>, </span><span class="parameter" id="-param-scriptCode"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">scriptCode</span>, </span><span class="parameter" id="-param-countryCode"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">countryCode</span>, </span><span class="parameter" id="-param-build"><span>required</span> <span class="type-annotation"><a href="https://pub.dev/documentation/slang/3.13.0/api_locale/TranslationBuilder.html">TranslationBuilder</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="../i18n_strings.g/AppLocale.html">AppLocale</a></span>, <span class="type-parameter">_StringsEn</span>&gt;</span></span> <span class="parameter-name">build</span>}</span>)</span>
        </dt>
        <dd>
          
            <div class="constructor-modifier features">const</div>
        </dd>
    </dl>
  </section>

    <section class="summary offset-anchor" id="values">
      <h2>Values</h2>

      <dl class="properties">
          <dt id="en" class="constant">
    <span class="name ">en</span>
  <span class="signature">&#8594; const <a href="../i18n_strings.g/AppLocale.html">AppLocale</a></span>
  

</dt>
<dd>
  
  

    <div>
      <span class="signature"><code>AppLocale(languageCode: &#39;en&#39;, build: _StringsEn.build)</code></span>
    </div>
</dd>

      </dl>
    </section>

    <section
        class="
          summary
          offset-anchor"
        id="instance-properties">
      <h2>Properties</h2>

      <dl class="properties">
        <dt id="build" class="property">
  <span class="name"><a href="../i18n_strings.g/AppLocale/build.html">build</a></span>
  <span class="signature">&#8594; <a href="https://pub.dev/documentation/slang/3.13.0/api_locale/TranslationBuilder.html">TranslationBuilder</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="../i18n_strings.g/AppLocale.html">AppLocale</a></span>, <span class="type-parameter">_StringsEn</span>&gt;</span></span> 

</dt>
<dd>
  Gets a new translation instance.
<a href="../i18n_strings.g/LocaleSettings-class.html">LocaleSettings</a> has no effect here.
Suitable for dependency injection and unit tests.
  <div class="features"><span class="feature">final</span></div>

</dd>

        <dt id="countryCode" class="property">
  <span class="name"><a href="../i18n_strings.g/AppLocale/countryCode.html">countryCode</a></span>
  <span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a>?</span> 

</dt>
<dd>
  
  <div class="features"><span class="feature">final</span></div>

</dd>

        <dt id="hashCode" class="property inherited">
  <span class="name"><a href="https://api.flutter.dev/flutter/dart-core/Object/hashCode.html">hashCode</a></span>
  <span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/int-class.html">int</a></span> 

</dt>
<dd class="inherited">
  The hash code for this object.
  <div class="features"><span class="feature">read-only</span><span class="feature">inherited</span></div>

</dd>

        <dt id="index" class="property inherited">
  <span class="name"><a href="https://api.flutter.dev/flutter/dart-core/Enum/index.html">index</a></span>
  <span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/int-class.html">int</a></span> 

</dt>
<dd class="inherited">
  A numeric identifier for the enumerated value.
  <div class="features"><span class="feature">read-only</span><span class="feature">inherited</span></div>

</dd>

        <dt id="languageCode" class="property">
  <span class="name"><a href="../i18n_strings.g/AppLocale/languageCode.html">languageCode</a></span>
  <span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a></span> 

</dt>
<dd>
  
  <div class="features"><span class="feature">final</span></div>

</dd>

        <dt id="languageTag" class="property inherited">
  <span class="name"><a href="https://pub.dev/documentation/slang/3.13.0/api_locale/BaseAppLocale/languageTag.html">languageTag</a></span>
  <span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a></span> 

</dt>
<dd class="inherited">
  
  <div class="features"><span class="feature">read-only</span><span class="feature">inherited</span></div>

</dd>

        <dt id="runtimeType" class="property inherited">
  <span class="name"><a href="https://api.flutter.dev/flutter/dart-core/Object/runtimeType.html">runtimeType</a></span>
  <span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/Type-class.html">Type</a></span> 

</dt>
<dd class="inherited">
  A representation of the runtime type of the object.
  <div class="features"><span class="feature">read-only</span><span class="feature">inherited</span></div>

</dd>

        <dt id="scriptCode" class="property">
  <span class="name"><a href="../i18n_strings.g/AppLocale/scriptCode.html">scriptCode</a></span>
  <span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a>?</span> 

</dt>
<dd>
  
  <div class="features"><span class="feature">final</span></div>

</dd>

        <dt id="translations" class="property">
  <span class="name"><a href="../i18n_strings.g/AppLocale/translations.html">translations</a></span>
  <span class="signature">&#8594; _StringsEn</span> 

</dt>
<dd>
  Gets current instance managed by <a href="../i18n_strings.g/LocaleSettings-class.html">LocaleSettings</a>.
  <div class="features"><span class="feature">read-only</span></div>

</dd>

      </dl>
    </section>

    
  <section
      class="summary offset-anchor inherited"
      id="instance-methods">
    <h2>Methods</h2>
    <dl class="callables">
        <dt id="noSuchMethod" class="callable inherited">
  <span class="name"><a href="https://api.flutter.dev/flutter/dart-core/Object/noSuchMethod.html">noSuchMethod</a></span><span class="signature">(<wbr><span class="parameter" id="noSuchMethod-param-invocation"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/Invocation-class.html">Invocation</a></span> <span class="parameter-name">invocation</span></span>)
    <span class="returntype parameter">&#8594; dynamic</span>
  </span>
  

</dt>
<dd class="inherited">
  Invoked when a nonexistent method or property is accessed.
  <div class="features"><span class="feature">inherited</span></div>

</dd>

        <dt id="sameLocale" class="callable inherited">
  <span class="name"><a href="https://pub.dev/documentation/slang/3.13.0/api_locale/BaseAppLocale/sameLocale.html">sameLocale</a></span><span class="signature">(<wbr><span class="parameter" id="sameLocale-param-other"><span class="type-annotation"><a href="https://pub.dev/documentation/slang/3.13.0/api_locale/BaseAppLocale-class.html">BaseAppLocale</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="https://pub.dev/documentation/slang/3.13.0/api_locale/BaseAppLocale-class.html">BaseAppLocale</a></span>, <span class="type-parameter"><a href="https://pub.dev/documentation/slang/3.13.0/api_locale/BaseTranslations-class.html">BaseTranslations</a></span>&gt;</span></span> <span class="parameter-name">other</span></span>)
    <span class="returntype parameter">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span>
  </span>
  

</dt>
<dd class="inherited">
  
  <div class="features"><span class="feature">inherited</span></div>

</dd>

        <dt id="toString" class="callable inherited">
  <span class="name"><a href="https://pub.dev/documentation/slang/3.13.0/api_locale/BaseAppLocale/toString.html">toString</a></span><span class="signature">(<wbr>)
    <span class="returntype parameter">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a></span>
  </span>
  

</dt>
<dd class="inherited">
  A string representation of this object.
  <div class="features"><span class="feature">inherited</span></div>

</dd>

    </dl>
  </section>
    
  <section
      class="summary offset-anchor inherited"
      id="operators">
    <h2>Operators</h2>
    <dl class="callables">
        <dt id="operator ==" class="callable inherited">
  <span class="name"><a href="https://api.flutter.dev/flutter/dart-core/Object/operator_equals.html">operator ==</a></span><span class="signature">(<wbr><span class="parameter" id="==-param-other"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/Object-class.html">Object</a></span> <span class="parameter-name">other</span></span>)
    <span class="returntype parameter">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span>
  </span>
  

</dt>
<dd class="inherited">
  The equality operator.
  <div class="features"><span class="feature">inherited</span></div>

</dd>

    </dl>
  </section>
    
    
    

  <section class="summary offset-anchor" id="constants">
    <h2>Constants</h2>

    <dl class="properties">
        <dt id="values" class="constant">
    <span class="name "><a href="../i18n_strings.g/AppLocale/values-constant.html">values</a></span>
  <span class="signature">&#8594; const <a href="https://api.flutter.dev/flutter/dart-core/List-class.html">List</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="../i18n_strings.g/AppLocale.html">AppLocale</a></span>&gt;</span></span>
  

</dt>
<dd>
  A constant List of the values in this enum, in order of their declaration.
  

    <div>
      <span class="signature"><code>[en]</code></span>
    </div>
</dd>

    </dl>
  </section>
  </div><!-- /.main-content -->

  <div id="dartdoc-sidebar-left" class="sidebar sidebar-offcanvas-left">
    <header id="header-search-sidebar" class="hidden-l">
  <form class="search-sidebar" role="search">
    <input type="text" id="search-sidebar" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
</header>

<ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav">
  <li><a href="../index.html">yuuna</a></li>
  <li><a href="../i18n_strings.g/i18n_strings.g-library.html">strings.g</a></li>
  <li class="self-crumb">AppLocale enum</li>
</ol>


    <h5>strings.g library</h5>
    <ol>
      <li class="section-title"><a href="../i18n_strings.g/i18n_strings.g-library.html#classes">Classes</a></li>
        <li><a href="../i18n_strings.g/AppLocaleUtils-class.html">AppLocaleUtils</a></li>
        <li><a href="https://pub.dev/documentation/slang/3.13.0/api_locale/BaseAppLocale-class.html">BaseAppLocale</a></li>
        <li><a href="https://pub.dev/documentation/slang/3.13.0/api_singleton/BaseAppLocaleUtils-class.html">BaseAppLocaleUtils</a></li>
        <li><a href="https://pub.dev/documentation/slang_flutter/3.13.0/slang_flutter/BaseFlutterLocaleSettings-class.html">BaseFlutterLocaleSettings</a></li>
        <li><a href="https://pub.dev/documentation/slang/3.13.0/api_singleton/BaseLocaleSettings-class.html">BaseLocaleSettings</a></li>
        <li><a href="https://pub.dev/documentation/slang_flutter/3.13.0/slang_flutter/BaseTranslationProvider-class.html">BaseTranslationProvider</a></li>
        <li><a href="https://pub.dev/documentation/slang/3.13.0/api_locale/BaseTranslations-class.html">BaseTranslations</a></li>
        <li><a href="https://pub.dev/documentation/slang/3.13.0/api_locale/FakeAppLocale-class.html">FakeAppLocale</a></li>
        <li><a href="https://pub.dev/documentation/slang/3.13.0/api_locale/FakeTranslations-class.html">FakeTranslations</a></li>
        <li><a href="https://pub.dev/documentation/slang_flutter/3.13.0/slang_flutter/InheritedLocaleData-class.html">InheritedLocaleData</a></li>
        <li><a href="../i18n_strings.g/LocaleSettings-class.html">LocaleSettings</a></li>
        <li><a href="https://pub.dev/documentation/slang/3.13.0/api_pluralization/PluralResolvers-class.html">PluralResolvers</a></li>
        <li><a href="https://pub.dev/documentation/slang_flutter/3.13.0/slang_flutter/RichPluralResolvers-class.html">RichPluralResolvers</a></li>
        <li><a href="https://pub.dev/documentation/slang/3.13.0/api_locale/TranslationMetadata-class.html">TranslationMetadata</a></li>
        <li><a href="https://pub.dev/documentation/slang_flutter/3.13.0/slang_flutter/TranslationOverridesFlutter-class.html">TranslationOverridesFlutter</a></li>
        <li><a href="../i18n_strings.g/TranslationProvider-class.html">TranslationProvider</a></li>
        <li><a href="../i18n_strings.g/Translations-class.html">Translations</a></li>

      <li class="section-title"><a href="../i18n_strings.g/i18n_strings.g-library.html#extensions">Extensions</a></li>
        <li><a href="https://pub.dev/documentation/slang/3.13.0/api_singleton/AppLocaleUtilsExt.html">AppLocaleUtilsExt</a></li>
        <li><a href="../i18n_strings.g/BuildContextTranslationsExtension.html">BuildContextTranslationsExtension</a></li>
        <li><a href="https://pub.dev/documentation/slang_flutter/3.13.0/slang_flutter/ExtAppLocale.html">ExtAppLocale</a></li>
        <li><a href="https://pub.dev/documentation/slang_flutter/3.13.0/slang_flutter/ExtAppLocaleUtils.html">ExtAppLocaleUtils</a></li>
        <li><a href="https://pub.dev/documentation/slang_flutter/3.13.0/slang_flutter/ExtBaseLocaleSettings.html">ExtBaseLocaleSettings</a></li>
        <li><a href="https://pub.dev/documentation/slang/3.13.0/api_singleton/LocaleSettingsExt.html">LocaleSettingsExt</a></li>



      <li class="section-title"><a href="../i18n_strings.g/i18n_strings.g-library.html#properties">Properties</a></li>
        <li><a href="../i18n_strings.g/t.html">t</a></li>


      <li class="section-title"><a href="../i18n_strings.g/i18n_strings.g-library.html#enums">Enums</a></li>
        <li><a href="../i18n_strings.g/AppLocale.html">AppLocale</a></li>

      <li class="section-title"><a href="../i18n_strings.g/i18n_strings.g-library.html#typedefs">Typedefs</a></li>
        <li><a href="https://pub.dev/documentation/slang_flutter/3.13.0/slang_flutter/InlineSpanBuilder.html">InlineSpanBuilder</a></li>
        <li><a href="https://pub.dev/documentation/slang/3.13.0/api_pluralization/PluralResolver.html">PluralResolver</a></li>
        <li><a href="https://pub.dev/documentation/slang/3.13.0/api_locale/TranslationBuilder.html">TranslationBuilder</a></li>

</ol>

  </div>

  <div id="dartdoc-sidebar-right" class="sidebar sidebar-offcanvas-right">
    <ol>

        <li class="section-title"><a href="../i18n_strings.g/AppLocale.html#constructors">Constructors</a></li>
          <li><a href="../i18n_strings.g/AppLocale/AppLocale.html">AppLocale</a></li>

        <li class="section-title"><a href="../i18n_strings.g/AppLocale.html#values">Values</a></li>
          <li><a href="../i18n_strings.g/AppLocale.html#en">en</a></li>

        <li class="section-title">
          <a href="../i18n_strings.g/AppLocale.html#instance-properties">Properties</a>
        </li>
          <li><a href="../i18n_strings.g/AppLocale/build.html">build</a></li>
          <li><a href="../i18n_strings.g/AppLocale/countryCode.html">countryCode</a></li>
          <li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/hashCode.html">hashCode</a></li>
          <li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Enum/index.html">index</a></li>
          <li><a href="../i18n_strings.g/AppLocale/languageCode.html">languageCode</a></li>
          <li class="inherited"><a href="https://pub.dev/documentation/slang/3.13.0/api_locale/BaseAppLocale/languageTag.html">languageTag</a></li>
          <li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/runtimeType.html">runtimeType</a></li>
          <li><a href="../i18n_strings.g/AppLocale/scriptCode.html">scriptCode</a></li>
          <li><a href="../i18n_strings.g/AppLocale/translations.html">translations</a></li>

        <li class="section-title inherited"><a href="../i18n_strings.g/AppLocale.html#instance-methods">Methods</a></li>
          <li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/noSuchMethod.html">noSuchMethod</a></li>
          <li class="inherited"><a href="https://pub.dev/documentation/slang/3.13.0/api_locale/BaseAppLocale/sameLocale.html">sameLocale</a></li>
          <li class="inherited"><a href="https://pub.dev/documentation/slang/3.13.0/api_locale/BaseAppLocale/toString.html">toString</a></li>

        <li class="section-title inherited"><a href="../i18n_strings.g/AppLocale.html#operators">Operators</a></li>
          <li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/operator_equals.html">operator ==</a></li>




        <li class="section-title"><a href="../i18n_strings.g/AppLocale.html#constants">Constants</a></li>
          <li><a href="../i18n_strings.g/AppLocale/values-constant.html">values</a></li>
</ol>

  </div><!-- /.sidebar-offcanvas -->

</main>

<footer>
  <span class="no-break">
    yuuna
      2.8.0+93
  </span>

  
</footer>



<script src="../static-assets/highlight.pack.js?v1"></script>
<script src="../static-assets/docs.dart.js"></script>



</body>

</html>

